﻿--[[
   @brief    login_sub_account
   @author   amadeusyu
   @version  1.0
   @date     2015-04-01
--]]

login_sub_account_desc =
{
    module_name = 'login_sub_account',
    events = 
    {
        {
            c_event = 
            {
                {
                    id  = ierd_tgp.login_mgr.LOGIN_ON_SUB_ACCOUNT_PIC_CHECK,
                    callback = "sub_account_login_control.on_sub_account_pic_check"
                },
                {
                    id  = ierd_tgp.login_mgr.LOGIN_ON_LOGIN_SUB_ACCOUNT_FAILED,
                    callback = "sub_account_login_control.on_sub_account_failed"
                },
                {
                    id  = ierd_tgp.tgp_plugin.PLUGINMGR_ON_OPEN_ADD_ACCOUNT,
                    callback = "sub_account_login_control.on_add_account"
                },
                {
                    id = ierd_tgp.game_library.K_MULTI_LANUCH_RESULT,
                    callback = "sub_account_login_control.multi_lanuch_result"
                },
                {
                    id  = ierd_tgp.game_library.K_MULTI_PROCESS_RESULT,
                    callback = 'sub_account_login_control.multi_process_result'
                }
            },
            lua_event = 
            {
                {
                    id  = sub_account_login_event.SUB_ACCOUNT_ADD_ACCOUNT,
                    callback = "sub_account_login_control.on_add_account"
                }
            },
            lua_file = "login_sub_account\\control.lua"
        },
        {
            c_event = 
            {
                {
                    id  = ierd_tgp.game_library.SYS_TIP_NONAGE,
                    callback = "sub_account_tips.show_age_less18_wnd"
                },
                {
                    id = ierd_tgp.game_library.SYS_TIP_ID_NOT_AUTHENTICATED,
                    callback = "sub_account_tips.show_real_name_verify_wnd"
                },     
            },
            lua_event = 
            {
                {
                    id  = sub_account_login_event.SUB_ACCOUNT_SHOW_TIPS,
                    callback = "sub_account_tips.show_tips"
                },
            },
            listen_broadcast = {
                {
                    id = "wechat_ok_go_to_verify",
                    callback = "sub_account_tips.on_click_wechat_identity_verification_btn"
                },
                {
                    id = "ok_go_to_verify",
                    callback = "sub_account_tips.on_click_identity_verification_btn"
                },
                {
                    id = "ok_go_to_less18",
                    callback = "sub_account_tips.on_click_btn_age_less18"
                },
                {
                    id = "ok_go_to_close",
                    callback = "sub_account_tips.on_click_close_window"
                },
            },
            reg_service = 
            {
                {
                    id = 'Svr_ShowRealNameTips',
                    callback = 'sub_account_tips.show_real_name_tips'
                },
                {
                    id = 'Svr_ShowCtrlCenterTips',
                    callback = 'sub_account_tips.show_control_center_tips'
                },
            },
            lua_file = "login_sub_account\\sub_account_tips.lua"
        },
    }
};
desc_mgr.add(login_sub_account_desc);